#define _CRT_SECURE_NO_WARNINGS 1
#include "stack.h"
int main()
{
	ST st;
	STInit(&st);
	STPushBack(&st, 2);
	STPushBack(&st, 3);
	STPushBack(&st, 4);
	StackPop(&st);
	StackPop(&st);
	StackPop(&st);

	//printf("%d\n", StackTop(&st));
	//printf("%d\n", StackSize(&st));
	while (!STEmpty(&st)) {
		printf("%d\n", st.arr[st.top-1]);
		StackPop(&st);
	}

	StackDestroy(&st);
	return 0;
}